package com.touni.designpattern.bridgepattern;

import com.touni.designpattern.bridgepattern.bridgeimpl.DrawAPI;

/**
 * @ClassName : Circle
 * @Description :
 * @Author : lwq
 * @Date: 2020-10-22 16:09
 */
public class Circle extends Shape {
    private String color;
    private int radius;

    public Circle(String color,int radius,DrawAPI drawAPI) {
        super(drawAPI);
        this.color = color;
        this.radius = radius;
    }

    @Override
    public void useDraw() {
        drawAPI.draw(color,radius);
    }
}
